// TestRadiusDsapiFilter.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <assert.h>

#include <DSAPI.h>

void WhenFilterInitRun();
void WhenHttpFilterProcRun();

int main(int argc, char* argv[])
{
	WhenFilterInitRun();

	WhenHttpFilterProcRun();

	return 0;
}

void WhenFilterInitRun()
{
	FilterInitData filterInitData= {0};

assert(kFilterHandledEvent == 
	FilterInit(&filterInitData)	);
assert(kInterfaceVersion ==
	filterInitData.appFilterVersion);
assert(kFilterAuthenticate ==
	filterInitData.eventFlags);
}

void WhenHttpFilterProcRun()
{
	unsigned int eventType = kFilterAuthenticate;
	FilterAuthenticate AuthData= {0};
		AuthData.userName = (unsigned char *)"User1";
		AuthData.password = (unsigned char *)"pwd";
	HttpFilterProc(0, eventType, &AuthData);
//	HttpFilterProc(0, eventType, &AuthData);
}